<?php
header ( "Content-type: text/html; charset=utf-8" );
?>
<link rel="stylesheet" type="text/css" href="style/tip.css" />
        	<table class="qi_table" width="0" border="0" cellpadding="0" cellspacing="1">
              <tr><th>姓名</th><th>问题标题</th><th>科室</th><th>提问时间</th><th>回复时间</th><th >回复人</th><th>状态</th><th>是否可见</th><th width="13%">操作</th></tr>
              <?php 
              	if(is_array($allconsult) && count($allconsult)>0){
              		foreach ($allconsult as $v){
              ?>
              <tr>
              	<td><?php echo str_replace($men, "<font color=red><b>".$men."</b></font>&nbsp;", $v['NAME'])?></td>
              	<td style="text-align:left;"><?php echo $v['TITLE']?></td>
              	<td><?php echo $allDep[$v['DEP_NO']]?></td>
              	<td><?php echo date('Y-m-d',strtotime($v['ASK_TIME']))?></td>
              	<td><?php echo $v['UPD_TIME']?date('Y-m-d',strtotime($v['UPD_TIME'])):'<font color="#EF9024" pid="'.$v['ASK_ID'].'" class="goanswer pointer">待回复</font>'?></td>
              	<td><?php echo $v['UPD_USER']?ATools::retUserTrueName($v['UPD_USER']):'<font color="#EF9024" pid="'.$v['ASK_ID'].'" class="goanswer pointer">待回复</font>'?></td>
              	<td><b class="greenword">
					<?php 
						switch ($v['STATE']) {
							case '1':echo '未回复';break;
							case '2':echo '已回复';break;
							case '3':echo '<font color="red">审核未通过</font>';break;
							case '4':echo '审核通过';break;
							case '5':echo '未审核';break;
							default:echo '';break;
						}
					?>
				</b></td>
              	<td>
					<?php 
						switch ($v['TYPE']){
							case '1':echo '公开';break;
							case '2':echo '内部公开';break;
							default:echo '';break;
						}
					?>
				</td>
              	<td>
	              		<a onclick="javascript: JYCsm.openWindow('/index.php?c=feed&a=lookask&id=<?php echo $v['ASK_ID']?>&outid=1');return false;" href="/index.php?c=feed&a=lookask&id=<?php echo $v['ASK_ID']?>">查看</a> 
	              </td>
              </tr>
              <?php 
              		}
              	}else{
              ?>
              <tr height="40"><td style="text-align:center;color:green;" colspan='10'>该用户暂时还没有咨询信息</td></tr>
              <?php }?>
              <tr><td colspan='10'><div class="pager-his">
					<?php 
						$url = '/index.php?c='.$_REQUEST['c'].'&a='.$_REQUEST['a'].'&p=_num_&pid='.$pid;
						echo JYTools::pager($url,$tolNum,$page,$pagesize);
					?>
					</div>
			  </td></tr>
              <tr><!--<td colspan="10"><div class="page">共 36 条记录</div><div class="pageTurn"><a href="">首页</a> <a href="">上一页</a> 1/3页 <a href="">下一页</a> <a href="">尾页</a> 转到第<input class="text" name="" type="text" />页 <a href="">GO</a></div><div class="clear"></div></td>--></tr>
            </table>
